package com.carrent.demo.Mapper;

import com.carrent.demo.Domain.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CarsMapper {


    List<Cars> getPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize, @Param("name")String name);

    Integer getCount(@Param("name")String name);
    List<Cars> getPage2(@Param("start")Integer start, @Param("pageSize")Integer pageSize);

    Integer getCount2();
    Boolean deleteCar(@Param("id") String id);

    Boolean editStatus(@Param("id") Integer id,@Param("status") Integer status);
    Boolean editCar(@Param("cars") Cars cars);

    Boolean addCar(@Param("cars") Cars cars);

    List<EmployeeInformation> selectEmployee();

    Double getCarPrice(@Param("id") Integer id);

    Boolean deleteCarContract(@Param("id") Integer id);

    Boolean deleteCarComplited(@Param("id") Integer id);




}

